package com.lvmama.pangolin.lmm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.lvmama.pangolin.entity.lmm.LMMTicketCommodityPrice;
import com.lvmama.pangolin.lmm.service.LMMTicketCommodityPriceService;
import com.lvmama.pangolin.mybatis.mapper.lmm.LMMTicketCommodityPriceMapper;

@Transactional
@Service
public class LMMTicketCommodityPriceServiceImpl implements LMMTicketCommodityPriceService
{

	@Autowired
	private LMMTicketCommodityPriceMapper ticketCommodityPriceMapper;
	@Override
	public int deleteByIdAndTask(String id, String task_id)
	{
		return ticketCommodityPriceMapper.deleteByIdAndTask(id, task_id);
	}

	@Override
	public int deleteById(String id)
	{
		return ticketCommodityPriceMapper.deleteById(id);
	}

	@Override
	public int deleteByProdId(String productId)
	{
		return ticketCommodityPriceMapper.deleteByProdId(productId);
	}

	@Override
	public int insert(LMMTicketCommodityPrice record)
	{
		return ticketCommodityPriceMapper.insert(record);
	}

	@Override
	public int insertSelective(LMMTicketCommodityPrice record)
	{
		return ticketCommodityPriceMapper.insertSelective(record);
	}

	@Override
	public List<LMMTicketCommodityPrice> selectById(String id)
	{
		return ticketCommodityPriceMapper.selectById(id);
	}

	@Override
	public LMMTicketCommodityPrice selectByPrimaryKey(String id, String task_id,
			String grab_time, String sale_date)
	{
		return ticketCommodityPriceMapper.selectByPrimaryKey(id, task_id, grab_time, sale_date);
	}
}
